package com.ruoyi.mall.common.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收货地址对象 dts_address
 *
 * @author ruoyi
 * @date 2025-02-17
 */
public class DtsAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 地址ID */
    @Excel(name = "地址ID")
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 收货人名称 */
    @Excel(name = "收货人名称")
    private String name;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String mobile;

    /** 地址 */
    @Excel(name = "地址")
    private String address;

    /** 默认 */
    @Excel(name = "默认")
    private Integer isDefault;

    /** 行政区域表的省ID */
    private Long provinceId;

    /** 行政区域表的市ID */
    private Long cityId;

    /** 行政区域表的区县ID */
    private Long areaId;

    /** 创建时间 */
    private Date addTime;

    /** 逻辑删除 */
    private Integer deleted;

    private int count;

    private String username;

    private String nickname;

    private List<DtsUser> dtsUserList;

    private DtsRegion provinceName;

    private DtsRegion cityName;

    private DtsRegion areaName;

    public DtsRegion getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(DtsRegion provinceName) {
        this.provinceName = provinceName;
    }

    public DtsRegion getCityName() {
        return cityName;
    }

    public void setCityName(DtsRegion cityName) {
        this.cityName = cityName;
    }

    public DtsRegion getAreaName() {
        return areaName;
    }

    public void setAreaName(DtsRegion areaName) {
        this.areaName = areaName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setMobile(String mobile)
    {
        this.mobile = mobile;
    }

    public String getMobile()
    {
        return mobile;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setIsDefault(Integer isDefault)
    {
        this.isDefault = isDefault;
    }

    public Integer getIsDefault()
    {
        return isDefault;
    }
    public void setProvinceId(Long provinceId)
    {
        this.provinceId = provinceId;
    }

    public Long getProvinceId()
    {
        return provinceId;
    }
    public void setCityId(Long cityId)
    {
        this.cityId = cityId;
    }

    public Long getCityId()
    {
        return cityId;
    }
    public void setAreaId(Long areaId)
    {
        this.areaId = areaId;
    }

    public Long getAreaId()
    {
        return areaId;
    }
    public void setAddTime(Date addTime)
    {
        this.addTime = addTime;
    }

    public Date getAddTime()
    {
        return addTime;
    }
    public void setDeleted(Integer deleted)
    {
        this.deleted = deleted;
    }

    public Integer getDeleted()
    {
        return deleted;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public List<DtsUser> getDtsUserList() {
        return dtsUserList;
    }

    public void setDtsUserList(List<DtsUser> dtsUserList) {
        this.dtsUserList = dtsUserList;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("mobile", getMobile())
            .append("address", getAddress())
            .append("isDefault", getIsDefault())
            .append("provinceId", getProvinceId())
            .append("cityId", getCityId())
            .append("areaId", getAreaId())
            .append("addTime", getAddTime())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
